package com.example.fw;

public class GroupSelectionObject {
	public String title;
	public String id;
	public GroupSelectionObject setTitle(String title) {
		this.title = title;
		return this;	}
	
	public GroupSelectionObject setId(String id) {
		this.id = id;
		return this;
	}	
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((title == null) ? 0 : title.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GroupSelectionObject other = (GroupSelectionObject) obj;
		if (title == null) {
			if (other.title != null)
				return false;
		} else if (!title.equals(other.title))
			return false;
		if (id != null && other.id != null) {
			return id.equals(other.id);
	} 
		return true;
	}

	@Override
	public String toString() {
		return "Group[" + id + ":" + title + "]";
	}
	
	
		}
	

